{% extends 'base.html' %}
{% load crispy_forms_tags %}

{% block title %}{{ title }}{% endblock %}

{% block content %}
<div class="container-fluid">
    <div class="row justify-content-center">
        <div class="col-lg-8">
            <div class="card">
                <div class="card-header">
                    <h4 class="mb-0">
                        <i class="fas fa-tasks me-2"></i>{{ title }}
                    </h4>
                </div>
                <div class="card-body">
                    <form method="post">
                        {% csrf_token %}
                        {% crispy form %}
                    </form>
                </div>
                <div class="card-footer">
                    <a href="{% url 'subprojects:subproject_list' %}" class="btn btn-secondary">
                        <i class="fas fa-arrow-left me-1"></i>返回子项目列表
                    </a>
                    {% if subproject %}
                    <a href="{% url 'subprojects:subproject_detail' subproject.pk %}" class="btn btn-info ms-2">
                        <i class="fas fa-eye me-1"></i>查看详情
                    </a>
                    {% endif %}
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}